import Foundation


struct User {

    static var tableName: String = "users"

    let userId: String
    let fullName: String?
    let identityNumber: String
    let avatarUrl: String?
    var phone: String? = nil
    var isVerified: Bool? = nil
    var muteUntil: String? = nil
    var appId: String? = nil
    let createdAt: String?
    let relationship: String

    var app: App? = nil

    static let systemUser = "00000000-0000-0000-0000-000000000000"

    static func createSystemUser() -> User {
        return User(userId: systemUser, fullName: "0", identityNumber: "0", avatarUrl: nil, phone: nil, isVerified: false, muteUntil: nil, appId: nil, createdAt: nil, relationship: "", app: nil)
    }
}
